package com.financial.business.base.connector;

import com.financial.business.base.utils.apiresult.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author WANGNING
 * @date 2019/11/4
 * @email wyn20140226@aliyun.com
 * @des 积分feign
 */
@Service
@FeignClient(name = "financial-business-integral")
public interface IntegralBusinessFeign {

    /**
     * 积分报备
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/integral/report", method = RequestMethod.POST)
    ApiResult report(@RequestBody String requestParam);

    /**
     * 积分支付
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/integral/pay", method = RequestMethod.POST)
    ApiResult pay(@RequestBody String requestParam);

    /**
     * 积分分账
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/integral/split", method = RequestMethod.POST)
    ApiResult split(@RequestBody String requestParam);

    /**
     * 积分退款
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/integral/refund", method = RequestMethod.POST)
    ApiResult refund(@RequestBody String requestParam);

    /**
     * 积分提现
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/integral/withdrawal", method = RequestMethod.POST)
    ApiResult withdrawal(@RequestBody String requestParam);

    /**
     * 积分代付/转账
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/integral/payment", method = RequestMethod.POST)
    ApiResult payment(@RequestBody String requestParam);

    /**
     * 积分查询
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/integral/query", method = RequestMethod.POST)
    ApiResult query(@RequestBody String requestParam);
}
